#ifndef VIEWER_H
#define VIEWER_H

#include "square.hpp"

#include <chrono>
#include <random>

class Viewer{
 public:
   //! Constructor
   Viewer();
   virtual ~Viewer();

   // gl stuff
   void init(int w, int h);
   void display() const;
   void updateScene();
   void reshape(int w, int h);

   // events
   void mousePressed(int button, int state, int x, int y);
   void mouseMoved(int x, int y);
   void keyPressed(unsigned char key, int x, int y);

 private:


   float _halfSize;
   bool _growing;
   Square _square;
};

#endif
